.class Lcom/estrongs/android/ui/pcs/e$b;
.super Landroid/os/Handler;
.source "PCSLoginDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ui/pcs/e;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ui/pcs/e;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/pcs/e;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->isDismissed()Z

    move-result v0

    if-nez v0, :cond_c

    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z

    move-result v0

    if-nez v0, :cond_0

    goto/16 :goto_2

    .line 2
    :cond_0
    iget v0, p1, Landroid/os/Message;->what:I

    sget v1, Lcom/estrongs/android/ui/pcs/e;->s:I

    const/4 v2, 0x1

    if-ne v0, v1, :cond_2

    .line 3
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    if-nez p1, :cond_1

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->f(Lcom/estrongs/android/ui/pcs/e;)Landroid/content/Context;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {v0}, Lcom/estrongs/android/ui/pcs/e;->f(Lcom/estrongs/android/ui/pcs/e;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f1103fb

    invoke-virtual {v0, v1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-static {p1, v0, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_1

    .line 5
    :cond_1
    check-cast p1, Ljava/lang/String;

    .line 6
    new-instance v0, Lcom/estrongs/android/ui/pcs/e$b$a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/ui/pcs/e$b$a;-><init>(Lcom/estrongs/android/ui/pcs/e$b;Ljava/lang/String;)V

    .line 7
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void

    .line 8
    :cond_2
    sget v1, Lcom/estrongs/android/ui/pcs/e;->t:I

    if-ne v0, v1, :cond_4

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {v0}, Lcom/estrongs/android/ui/pcs/e;->b(Lcom/estrongs/android/ui/pcs/e;)Landroid/webkit/WebView;

    move-result-object v0

    iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 10
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/String;

    const-string v0, "://"

    .line 11
    invoke-virtual {p1, v0}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    .line 12
    iget-object v1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    if-lez v0, :cond_3

    add-int/lit8 v0, v0, 0x3

    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p1

    :cond_3
    invoke-static {v1, p1}, Lcom/estrongs/android/ui/pcs/e;->b(Lcom/estrongs/android/ui/pcs/e;Ljava/lang/String;)Ljava/lang/String;

    return-void

    .line 13
    :cond_4
    sget v1, Lcom/estrongs/android/ui/pcs/e;->x:I

    const/4 v3, 0x0

    if-ne v0, v1, :cond_7

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->b(Lcom/estrongs/android/ui/pcs/e;)Landroid/webkit/WebView;

    move-result-object p1

    invoke-virtual {p1}, Landroid/webkit/WebView;->getContentHeight()I

    move-result p1

    if-lez p1, :cond_5

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-virtual {p1}, Landroid/app/Dialog;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/pop/utils/t;->b(Landroid/content/Context;)I

    move-result v0

    mul-int/lit8 v0, v0, 0x3

    div-int/lit8 v0, v0, 0x4

    invoke-static {p1, v3, v0}, Lcom/estrongs/android/ui/pcs/e;->a(Lcom/estrongs/android/ui/pcs/e;ZI)V

    goto :goto_0

    .line 16
    :cond_5
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-virtual {p1}, Landroid/app/Dialog;->isShowing()Z

    move-result p1

    if-nez p1, :cond_6

    return-void

    .line 17
    :cond_6
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->a(Lcom/estrongs/android/ui/pcs/e;)Landroid/os/Handler;

    move-result-object p1

    sget v0, Lcom/estrongs/android/ui/pcs/e;->x:I

    invoke-virtual {p1, v0}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {v0}, Lcom/estrongs/android/ui/pcs/e;->a(Lcom/estrongs/android/ui/pcs/e;)Landroid/os/Handler;

    move-result-object v0

    const-wide/16 v1, 0x12c

    invoke-virtual {v0, p1, v1, v2}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    :goto_0
    return-void

    .line 19
    :cond_7
    sget v1, Lcom/estrongs/android/ui/pcs/e;->u:I

    if-ne v0, v1, :cond_8

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->h(Lcom/estrongs/android/ui/pcs/e;)Landroid/view/View;

    move-result-object p1

    const/16 v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->i(Lcom/estrongs/android/ui/pcs/e;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 22
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->b(Lcom/estrongs/android/ui/pcs/e;)Landroid/webkit/WebView;

    move-result-object p1

    invoke-virtual {p1, v3}, Landroid/webkit/WebView;->setVisibility(I)V

    .line 23
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->b(Lcom/estrongs/android/ui/pcs/e;)Landroid/webkit/WebView;

    move-result-object p1

    const/16 v0, 0x82

    invoke-virtual {p1, v0}, Landroid/webkit/WebView;->requestFocus(I)Z

    return-void

    .line 24
    :cond_8
    sget v1, Lcom/estrongs/android/ui/pcs/e;->v:I

    const v3, 0x7f1106ee

    if-ne v0, v1, :cond_9

    .line 25
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->f(Lcom/estrongs/android/ui/pcs/e;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1, v3, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    goto :goto_1

    .line 26
    :cond_9
    sget v1, Lcom/estrongs/android/ui/pcs/e;->w:I

    if-ne v0, v1, :cond_b

    .line 27
    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-nez p1, :cond_a

    .line 28
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->f(Lcom/estrongs/android/ui/pcs/e;)Landroid/content/Context;

    move-result-object p1

    invoke-static {p1, v3, v2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    .line 29
    :cond_a
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->c(Lcom/estrongs/android/ui/pcs/e;)Z

    move-result p1

    if-nez p1, :cond_b

    .line 30
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->d(Lcom/estrongs/android/ui/pcs/e;)Lcom/estrongs/android/ui/pcs/f;

    move-result-object p1

    if-eqz p1, :cond_b

    .line 31
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->d(Lcom/estrongs/android/ui/pcs/e;)Lcom/estrongs/android/ui/pcs/f;

    move-result-object p1

    invoke-virtual {p1, v2}, Lcom/estrongs/android/ui/pcs/f;->a(I)V

    .line 32
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {p1}, Lcom/estrongs/android/ui/pcs/e;->d(Lcom/estrongs/android/ui/pcs/e;)Lcom/estrongs/android/ui/pcs/f;

    move-result-object p1

    iget-object v0, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-static {v0}, Lcom/estrongs/android/ui/pcs/e;->e(Lcom/estrongs/android/ui/pcs/e;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/pcs/f;->a(Ljava/lang/String;)V

    .line 33
    :cond_b
    :goto_1
    iget-object p1, p0, Lcom/estrongs/android/ui/pcs/e$b;->a:Lcom/estrongs/android/ui/pcs/e;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/pcs/e;->dismiss()V

    :cond_c
    :goto_2
    return-void
.end method
